



import 'shared_preferences.dart';

class SharedPreferenceMixin {

  Future<void> clearAll() async {
    await SpUtil.clear();
    return;
  }

  /// token
  static Future<void> setToken(String str) async {
    await SpUtil.putString("token", str);
  }

  static String getToken() {
    return SpUtil.getString("token", defValue: "") ?? "";
  }

}
